package com.globallogic.javatrainings.sergiiivanov.model;

import java.io.Serializable;

/**
 * @see #ResumeEntry(String, String, String)
 * @author Sergey
 */
public class ResumeEntry implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * @see #ResumeEntry(String, String, String)
     */
    public String notes;
    /**
     * @see #ResumeEntry(String, String, String)
     */
    public String summary;
    /**
     * @see #ResumeEntry(String, String, String)
     */
    public String year;

    /**
     * Creates storage of single record in resume. Used in {@link Person} to
     * store ResumeEnrtries in the private collection.
     * 
     * @param year1
     *            - String (<b>null</b> allowed), free form reference to the
     *            date or time period.
     * @param summary1
     *            - String (<b>null</b> allowed), free form summary of the
     *            entry. Usually, name of work place, project, university.
     * @param notes1
     *            - String (<b>null</b> allowed), free form detailed description
     *            of taken role in the project, job responsibilities or taken
     *            education program. <br>
     *            Call examples: <li>ResumeEntry("2000-2005",
     *            "Michigan University", "Master of Puppets degree"); <li>
     *            ResumeEntry("2000", "MI5", "Security Systems Brute-forcer");
     *            <li>ResumeEntry("June 1944", "Manhattan Project" , "Uranium
     *            Refinery Cleaning Engineer); <li>ResumeEntry("2013",
     *            "GL Java Training", "Java Courses Star Graduate");
     */
    public ResumeEntry(String year1, String summary1, String notes1) {
        this.year = year1;
        this.summary = summary1;
        this.notes = notes1;
    }

    /**
     * Returns resume entry as array
     * 
     * @return String[] { year, summary, notes }
     */
    public String[] asArray() {
        return new String[] { year, summary, notes };
    }

}
